package com.tuanzi.testService;

import com.tuanzi.ResultVo.ResultVO;
import com.tuanzi.entity.FlowerPot;
import com.tuanzi.service.LoginService;
import com.tuanzi.service.PotService;
import com.tuanzi.service.PwdService;
import com.tuanzi.service.TestService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @author tuanzi
 * @version 1.0
 * @date 2022/3/31 14:03
 */

@SpringBootTest
@RunWith(SpringRunner.class)
public class test01 {

    @Resource
    private LoginService loginService;

    @Resource
    private PwdService pwdService;

    @Resource
    private TestService testService;

    @Resource
    private PotService potService;

    /**
     * 测试修改密码功能是否可以实现
     */
    @Test
    public void testChangePwd(){

        ResultVO vo = pwdService.updatePwd(1, "521lmf1314");

        System.out.println(vo);

    }

    @Test void testAddPot(){

        FlowerPot flowerPot = potService.addFlowerPot(1, "测试service2", "测试用的");
        System.out.println(flowerPot);

    }


}
